<?php
namespace app\common\model;

use think\Model;

class Banner extends Model{

    protected $autoWriteTimestamp = true;

    public function searchTitleAttr($query, $value){
        
       if ($value) {
            $query->where('title', 'like', '%' . $value . '%');
        } 
        
    }
}



?>